package com.zyy.prototype.demo01;

import java.util.Date;

/**
 * @Description: 类描述
 * @Author: zyy
 * @Date: 2023/07/24 21:26
 */
public class Bilibili {
    public static void main(String[] args) throws CloneNotSupportedException {
        Date date = new Date();
        String name = "狂神说java";
        Video v1 = new Video(name, date);

        Video v2 = (Video) v1.clone();

        System.out.println("v1.hashCode===" + v1.hashCode());
        System.out.println("v2.hashCode===" + v2.hashCode());
        System.out.println("v1=====" + v1);
        System.out.println("v2=====" + v2);
        System.out.println("============");
        date.setTime(112323324);

        System.out.println("v1=====" + v1);
        System.out.println("v2=====" + v2);

    }
}
